﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace shuatibao.Constance
{
    public class ConstanceWechat
    {
        // 我的unionID
        public const string adminUnionId = "pwybb572gohzr2efrzg8";
        public const string adminGZHOpenId = "oWbn_6vRspzl8_7RXSyTP_l9u1zI";


        // 微信公众号
        public const string wechatAppID = "wx4a6c954683ae6a09";
        public const string wechatAccessSecret = "01d6735a89bb09cc069f8a9e5673c53f";
        public const string wechatToken = "o26jbg6B39zZjT11ZxKzK3TCFKl23Ns1";


        // 天天有好价 
        public const string smallCeshibaoAppId = "wx7b5f7eb128b0c49b";
        public const string smallCeshibaoAppSecret = "8e85bac8e6a08e97ea385e7c645a41bf";



        // 企业微信
        public const string corpid = "ww8e72805771067bcd";
        public const string corpsecret = "94JIzoLIi1G9Wsx47a70my8hlUrW_H1ze4azvy6myj8";
        public const string wechatCompanyToken = "XQF6uu7PwdpUMYXeeOtRBC0gJ";

        // jutuike充值
        public const string jutuikeChongzhiUrl = "https://kzurl11.cn/gmwSa";


        // 公众号订单推送
        // 下单成功
        public const string noticeOrdering = "wvAafhM7F6JOpTiXW-ACDYpQebOB1tJ6NuX1Xnh20aQ";
        // 心跳
        public const string noticeHeartbeat = "aozu3Id8H1PDJ_I8a0vGvNME_JTri4vjPT5uhnmoHUc";

        // 3. 吃饭
        public const string noticeEatting = "B99L-ZOPHECkej_a5487VJ_FcZ8DSCELOO0zA06wIiE";
        // 4. 微信 游戏
        public const string noticeGame = "KwJVd4obMgWjtktfCXya_lkmVmIJE_1avDmzs1yf4GU";
        // 5. 微信公众号
        public const string noticeFanli = "b2riVfohuzc6MOPJrwHJyCX-cMoe2w5Eq1dDlvaVNRw";

        // 6. 打款异常
        public const string noticeDakuanErr = "BGGm0Kxof8PfJ77xZP508YS6g4GLaGerFPspOtAaR9k";
        // 7. 无利可返推送
        public const string noticeNoBackErr = "OPbaQNv78Hc66NuUR1ravRgJip4buHUW_vuGAeqSClY";




        public static string smartMainUnionId(string mainUnionId)
        {
            string nUnionId = "";
            nUnionId = mainUnionId.Replace("-", "");
            if (nUnionId.Length > 20)
            {
                nUnionId = nUnionId.Substring(nUnionId.Length - 20);
            }
            nUnionId = nUnionId.ToLower();

            return nUnionId;




        }
    }
}